package com.fh.common;

/**
 * @author huangp
 * @create 2020-07-15 16:16
 */
public enum ResultEnum {

    ADD_SUCCESS_MSG(0,"新增成功"),
    ADD_ERROR_MSG(1,"新增失败"),
    QUERY_SUCCESS_MSG(0,"查询成功"),
    QUERY_ERROR_MSG(1,"查询失败"),
    TOUPDATE_ERROR_MSG(1,"回显失败"),
    TOUPDATE_SUCCESS_MSG(0,"回显成功"),
    UPDATE_SUCCESS_MSG(0,"修改成功"),
    UPDATE_ERROR_MSG(1,"修改失败"),
    DELETE_SUCCESS_MSG(0,"删除成功"),
    DELETE_ERROR_MSG(1,"删除失败"),
    ;

    ResultEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    private Integer code;
    private String msg;

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public static void main(String[] args) {

    }
}
